\section{network::notifier Class Reference}
\label{classnetwork_1_1notifier}\index{network::notifier@{network::notifier}}
This class represents an Observable (Observer-Pattern).  


{\tt \#include $<$notifier.h$>$}

Inheritance diagram for network::notifier::\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=10cm]{classnetwork_1_1notifier}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{CompactItemize}
\item 
virtual \bf{$\sim$notifier} ()\label{classnetwork_1_1notifier_4ad1129448e7e782d948c0120ec71180}

\item 
virtual void \bf{add\_\-listener} (boost::shared\_\-ptr$<$ \bf{network::listener} $>$ l)
\begin{CompactList}\small\item\em add\_\-listener adds an Observer to the Observable \item\end{CompactList}\item 
virtual void \bf{remove\_\-listener} (boost::shared\_\-ptr$<$ \bf{network::listener} $>$ l)
\begin{CompactList}\small\item\em remove\_\-listener removes an Observer from the Observable \item\end{CompactList}\end{CompactItemize}
\subsection*{Protected Member Functions}
\begin{CompactItemize}
\item 
void \bf{fire\_\-listener} ()\label{classnetwork_1_1notifier_2fb11d5745ff7b829f6731cfd097f5d8}

\begin{CompactList}\small\item\em fire\_\-listener is called by sub-classes which want notify the Observers \item\end{CompactList}\end{CompactItemize}


\subsection{Detailed Description}
This class represents an Observable (Observer-Pattern). 



Definition at line 38 of file notifier.h.

\subsection{Member Function Documentation}
\index{network::notifier@{network::notifier}!add_listener@{add\_\-listener}}
\index{add_listener@{add\_\-listener}!network::notifier@{network::notifier}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void network::notifier::add\_\-listener (boost::shared\_\-ptr$<$ \bf{network::listener} $>$ {\em l})\hspace{0.3cm}{\tt  [virtual]}}\label{classnetwork_1_1notifier_719a893291200b0f29a52da7beaa4271}


add\_\-listener adds an Observer to the Observable 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em l}]is the Observer which should be added. \end{description}
\end{Desc}


Definition at line 3 of file notifier.cpp.

\begin{Code}\begin{verbatim}4 {
5         boost::mutex::scoped_lock lck(_mon);
6         _list.push_back(l);
7 }
\end{verbatim}\end{Code}


\index{network::notifier@{network::notifier}!remove_listener@{remove\_\-listener}}
\index{remove_listener@{remove\_\-listener}!network::notifier@{network::notifier}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void network::notifier::remove\_\-listener (boost::shared\_\-ptr$<$ \bf{network::listener} $>$ {\em l})\hspace{0.3cm}{\tt  [virtual]}}\label{classnetwork_1_1notifier_b2a427386ad6b9bc65c06a87903d058b}


remove\_\-listener removes an Observer from the Observable 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em l}]is the Observer which should be removed. \end{description}
\end{Desc}


Definition at line 9 of file notifier.cpp.

\begin{Code}\begin{verbatim}10 {
11         boost::mutex::scoped_lock lck(_mon);
12         _list.remove(l);
13 }
\end{verbatim}\end{Code}




The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
network/notifier.h\item 
network/notifier.cpp\end{CompactItemize}
